<% layout("./_layout.html",{nav:category.id}){ %>
<div class="pagebg sh"></div>
<div class="container">
  <h1 class="t_nav">
    <span>不要轻易放弃。学习成长的路上，我们长路漫漫，只因学无止境。 </span>
    <a href="${ctxFront}/index/${site.theme}${@Global.getUrlSuffix()}" class="n1">首页</a>
    <a href="${ctxFront}/list/${category.id}${@Global.getUrlSuffix()}" class="n2">${category.name}</a>
  </h1>
  <!--blogsbox begin-->
  <%if(category.module == 'article'){%>
  <div class="blogsbox">
    <%for(article in page.list){%>
    <div class="blogs" data-scroll-reveal="enter bottom over 1s" >
      <h3 class="blogtitle"><a href="${article.url}" target="_blank">${article.title!}</a></h3>
      <span class="blogpic"><a href="${article.url}" title=""><img src="images/toppic01.jpg" alt=""></a></span>
      <p class="blogtext">${article.description!}</p>
      <div class="bloginfo">
        <ul>
          <li class="author"><a href="/">${article.user.name}</a></li>
          <li class="lmname"><a href="/">${article.category.name}</a></li>
          <li class="timer">${article.updateDate,dateFormat="yyyy-MM-dd "}</li>
          <li class="view"><span>${article.hits}</span>已阅读</li>
          <li class="like">${article.commentCount}</li>
        </ul>
      </div>
    </div>
    <%}elsefor{%>
    <div class="blogs" data-scroll-reveal="enter bottom over 1s" >暂无数据</div>
    <%}%>
    <div class="pagination" style="background-color:white;margin-top: 10px;text-align: center">${page}</div>
    <script type="text/javascript">
        function page(n,s){
            location="${ctxFront}/list/${category.id}${@Global.getUrlSuffix()}?pageNo="+n+"&pageSize="+s;
        }
    </script>
  </div>
  <%}%>
  <!--blogsbox end-->
  <% include("./_sidebar.html"){} %>
</div>

<%}%>
